//
//  SearchManager.h
//  EasyToo
//
//  Created by zhengzhe on 13-10-13.
//
//

#import <Foundation/Foundation.h>
#import "ServerCommunicationDelegate.h"

@protocol SearchManagerDelegate <NSObject>
@optional

- (void)onSearchGoodsFinish:(BOOL)isSuccess
                 GoodsArray:(NSMutableArray*)goods;

- (void)onSearchCouponFinish:(BOOL)isSuccess
                 couponArray:(NSMutableArray*)couponArray;


@end

@interface SearchManager : NSObject <ServerCommunicationDelegate>

@property (nonatomic, assign) id<SearchManagerDelegate> delegate;

+ (SearchManager*)shareManager;

- (void)searchGoods:(NSString*)keyword;

- (void)searchCoupon:(NSString*)keyword;
@end
